package com.xdjd.mobile.business.entity.model.member;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
  表:member_exchange_record 兑换记录表
*/
@Table(name = "member_exchange_record")
@SuppressWarnings("serial")
public class MemberExchangeRecordPo implements Serializable {

	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id; 
	private String recordNo; // 兑换编号
	private Long memberId; // 用户id
	private String prizeName; // 兑换奖品名称
	private String prizeLogo; // 兑换奖品图片
	private Long prizeId; // 兑换奖品id
	private Date exchangeDate; // 用户兑换日期
	private Date checkTime; // 最终审核成功兑换时间
	private Byte status; // 状态（0：处理中，1：成功，：2：失败）
	private Date createTime; 
	private Date modifyTime; 

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}

	/** 设置 兑换编号,对应字段 member_exchange_record.record_no */
	public void setRecordNo(String recordNo) {
		this.recordNo = recordNo;
	}
	/** 获取 兑换编号,对应字段 member_exchange_record.record_no */
	public String getRecordNo() {
		return this.recordNo;
	}

	/** 设置 用户id,对应字段 member_exchange_record.member_id */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	/** 获取 用户id,对应字段 member_exchange_record.member_id */
	public Long getMemberId() {
		return this.memberId;
	}

	/** 设置 兑换奖品名称,对应字段 member_exchange_record.prize_name */
	public void setPrizeName(String prizeName) {
		this.prizeName = prizeName;
	}
	/** 获取 兑换奖品名称,对应字段 member_exchange_record.prize_name */
	public String getPrizeName() {
		return this.prizeName;
	}

	/** 设置 兑换奖品图片,对应字段 member_exchange_record.prize_logo */
	public void setPrizeLogo(String prizeLogo) {
		this.prizeLogo = prizeLogo;
	}
	/** 获取 兑换奖品图片,对应字段 member_exchange_record.prize_logo */
	public String getPrizeLogo() {
		return this.prizeLogo;
	}

	/** 设置 兑换奖品id,对应字段 member_exchange_record.prize_id */
	public void setPrizeId(Long prizeId) {
		this.prizeId = prizeId;
	}
	/** 获取 兑换奖品id,对应字段 member_exchange_record.prize_id */
	public Long getPrizeId() {
		return this.prizeId;
	}

	/** 设置 用户兑换日期,对应字段 member_exchange_record.exchange_date */
	public void setExchangeDate(Date exchangeDate) {
		this.exchangeDate = exchangeDate;
	}
	/** 获取 用户兑换日期,对应字段 member_exchange_record.exchange_date */
	public Date getExchangeDate() {
		return this.exchangeDate;
	}

	/** 设置 最终审核成功兑换时间,对应字段 member_exchange_record.check_time */
	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}
	/** 获取 最终审核成功兑换时间,对应字段 member_exchange_record.check_time */
	public Date getCheckTime() {
		return this.checkTime;
	}

	/** 设置 状态（0：处理中，1：成功，：2：失败）,对应字段 member_exchange_record.status */
	public void setStatus(Byte status) {
		this.status = status;
	}
	/** 获取 状态（0：处理中，1：成功，：2：失败）,对应字段 member_exchange_record.status */
	public Byte getStatus() {
		return this.status;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public Date getModifyTime() {
		return this.modifyTime;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberExchangeRecordPo other = (MemberExchangeRecordPo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
    @Override
	public String toString() {
    	StringBuilder sb = new StringBuilder();
        sb.append("MemberExchangeRecordPo [");
        		        sb.append("id=").append(id);
        		sb.append(", ");        sb.append("recordNo=").append(recordNo);
        		sb.append(", ");        sb.append("memberId=").append(memberId);
        		sb.append(", ");        sb.append("prizeName=").append(prizeName);
        		sb.append(", ");        sb.append("prizeLogo=").append(prizeLogo);
        		sb.append(", ");        sb.append("prizeId=").append(prizeId);
        		sb.append(", ");        sb.append("exchangeDate=").append(exchangeDate);
        		sb.append(", ");        sb.append("checkTime=").append(checkTime);
        		sb.append(", ");        sb.append("status=").append(status);
        		sb.append(", ");        sb.append("createTime=").append(createTime);
        		sb.append(", ");        sb.append("modifyTime=").append(modifyTime);
                sb.append("]");
		return sb.toString();
	}

}